/*
 * EditorElement.java
 *
 * Created on 24.06.2007, 21:17:44
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor.util;

import java.awt.Point;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 *
 * @author Charon
 */
public class EditorElement extends JLabel {
    
    private BufferedImage mView = null;
    private List<Point> mExtensions = null;
    int zOrder = 0;
    
    public EditorElement(BufferedImage pImage) throws IOException{
        mView = pImage;
        setIcon(new ImageIcon(mView));
        setSize(mView.getWidth(), mView.getHeight());
        mExtensions = new LinkedList();
    }   
    
    public int getZOrder(){
        return zOrder;
    }
    
    public void setZOrder(int pZOrder){
        zOrder = pZOrder;
    }
    
    public BufferedImage getView(){
        return mView;
    }
}
